using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using Hont;
using UnityEngine;
using UnityEngine.Networking;

public class Test1 : MonoBehaviour
{
    private void Start()
    {
        async Task Exec()
        {
            using var r1 = await WebAsync.From(UnityWebRequest.Get("https://www.baidu.com"));
            using var r2 = await WebAsync.From(UnityWebRequest.Get("https://www.youku.com"));
            Debug.Log("web content:" + r1.GetString());
            Debug.Log("downloaded image: " + r2.GetTexture());
        }

        _ = Exec();
    }
}